package com.sword.demo.quartz.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 定时任务-参数
 * @author sword
 * @date 2022/12/6 13:48
 */
@ConfigurationProperties(prefix = SchedulerProperties.PREFIX)
@Component
@Data
public class SchedulerProperties {
    /**
     * 参数前缀
     */
    public static final String PREFIX = "scheduler";

    /**
     * 是否开启
     * 默认为空
     */
    private boolean enabled = false;
}
